Skip to content

Conversation

@kwongio
Copy link
Member

@kwongio kwongio commented Apr 28, 2025

작업

FCM 푸시 알림 개발 중

React Native Expo Notifiaction을 사용

푸시 알림 테스트용 사이트
https://expo.dev/notifications

expo notification sdk
https://github.com/hlspablo/expo-server-sdk-java

고려해야하는 사항

  1. 한 사용자가 한 계정으로 여러 기기에서 동시에 사용
  2. 한 기기에서 여러 계정 사용
  3. 한 사용자가 오랫동안 사용하지않음
  4. 이외의 예기치 않은 FCM 토큰 오류

[참고] : https://tioon.tistory.com/197

Expo Notification에서 발생하는 에러 종류(공식문서)
[참고]: https://docs.expo.dev/push-notifications/sending-notifications/#request-errors

Request errors
If there's an error with the entire request for either push tickets or push receipts, the errors object might have one of the following values, and you should handle these errors:

TOO_MANY_REQUESTS: You are exceeding the request limit of 600 notifications per second per project. We recommend implementing rate-limiting in your server to prevent sending more than 600 notifications per second (note that if you use expo-server-sdk-node, this is already implemented along with exponential backoffs for retries).

PUSH_TOO_MANY_EXPERIENCE_IDS: You are trying to send push notifications to different Expo experiences, for example, @username/projectAAA and @username/projectBBB. Check the details field for a mapping of experience names to their associated push tokens from the request, and remove any from another experience.

PUSH_TOO_MANY_NOTIFICATIONS: You are trying to send more than 100 push notifications in one request. Make sure you are only sending 100 (or fewer) notifications in each request.

PUSH_TOO_MANY_RECEIPTS: You are trying to get more than 1000 push receipts in one request. Make sure you are only sending an array of 1000 (or fewer) ticket ID strings to get your push receipts.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants